package com.yc.bean;

import lombok.Data;

import java.io.Serializable;
@Data
public class Admin implements Serializable {
    private Integer aid;
    private String aname;
    private String apwd;
    private String captcha;
    private Integer limits;
    private Integer status;
    public void setLimits(Integer limits) {
        if (limits == null) {
            this.limits = 1; // 如果 limits 为 null，设置默认值为1
        } else {
            this.limits = limits;
        }
    }

    public void setStatus(Integer status) {
        if (status == null) {
            this.status = 1; // 如果 limits 为 null，设置默认值为1
        } else {
            this.status = status;
        }
    }

}
